package com.ckx.config;

import com.ckx.base.support.MdcRunnable;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.TaskDecorator;

@Slf4j
@Configuration
public class AppConfig {

    @Bean
    public TaskDecorator taskDecorator() {
        return MdcRunnable::new;
    }

}
